package com.syswin.lhztest;

import com.syswin.lhztest.model.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

//@EnableSwagger2Doc
@SpringBootApplication
//@EnableConfigurationProperties(DemoSwaggerApplication.class)
//@EnableAsync
@EnableScheduling
//@EnablePrometheusEndpoint
//@EnableSpringBootMetricsCollector
public class AllMergeApplication implements ApplicationRunner {
	private static Logger LOGGER = LoggerFactory.getLogger(AllMergeApplication.class);

	@Autowired
	User user;

	public static void main(String[] args) {

		LOGGER.info("---111111---");
		SpringApplication sa = new SpringApplication(AllMergeApplication.class);

		sa.run(args);

	}

	@Override
	public void run(ApplicationArguments args) throws Exception {
		System.out.println("**********************+" + user);
	}
}